(function(win) {
	window.commit = function commit(){
		var adminVo={"username":$("#username").val(),"password":$("#password").val()};
		$.ajax({
			url : "/CompanyCabinetSystem/AdminController/regist",
			data : {adminVo:JSON.stringify(adminVo)},
			type : "post",
			dataType : "json",
			success : function(data) {
				//data = $.parseJSON(data);
				if (data && data.code == 1 && data.content) {
					alert("注册成功");
				} else {
					alert("注册失败");
				}
			}
		});
	}
})(window)